package cn.com.spring.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestMain {
	public static void testSpringAOP() throws Exception {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("app*.xml");

		ILoginService loginService = (ILoginService) ctx
				.getBean("loginService");
		loginService.login("zhangsan", "12344");
//		throw new Exception();
	}

	public static void main(String[] args) throws Exception {
		testSpringAOP();
	}
}